/**
 * 
 */
package map;

import java.util.HashSet;

/**
 * @author Mathias
 *
 */
public class City {
	public final String name;
	public final int id;
	public HashSet<Station> stations;
	
	public City(String name, int id){
		this.name = name;
		this.id = id;
	}
	
	public City(String name, int id, Station... stations ){
		this.name = name;
		this.id = id;
		for (int i = 0; i < stations.length; i++ ){
			this.stations.add(stations[i]);
		}
	}
	
	public boolean equals(City c){
		return this.name  == c.name;
	}
	
	public boolean addStation(Station station){
		return this.stations.add(station);
	}
	
	public boolean removeStation(Station s){
		return this.stations.remove(s);
	}
}
